﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShuiBiaoXXCX.aspx.cs" Inherits="Web.Pages.YongShui._12.ChaXunGL.ShuiBiaoXXCX" Theme="Default" %>


<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <link href="../../../css/inputBgColor.css" rel="stylesheet" />
    
    <style type="text/css">
         body, html
         {
             padding: 0;
             margin: 0;
         }
    </style>
    <script type="text/javascript">
        $(function () {
            var height = Math.max(0, document.documentElement.clientHeight) - 75;
            $("#condition").css("height", height);
        });

        function GVScrollToVisibleIndexOnClient(obj, index) {
            obj.SetVerticalScrollPosition(index * 25);
        }

        function first(obj, msg, key) {
            obj.SetFocusedRowIndex(0);
            hdCollection.Set(key, obj.GetRowKey(0));
            ASPxCallback1.PerformCallback(msg);
            GVScrollToVisibleIndexOnClient(obj, obj.GetFocusedRowIndex());
        }

        function last(obj, msg, key) {
            if (obj.GetFocusedRowIndex() == 0) {
                alert("当前已是第一条");
            }
            else {
                hdCollection.Set(key, obj.GetRowKey(obj.GetFocusedRowIndex() - 1));
                obj.SetFocusedRowIndex(obj.GetFocusedRowIndex() - 1);
                ASPxCallback1.PerformCallback(msg);
            }
            GVScrollToVisibleIndexOnClient(obj, obj.GetFocusedRowIndex());
        }

        function next(obj, msg, key) {
            if (obj.GetFocusedRowIndex() == obj.GetVisibleRowsOnPage() - 1) {
                alert("当前已是最后一条");
            }
            else {
                hdCollection.Set(key, obj.GetRowKey(obj.GetFocusedRowIndex() + 1));
                obj.SetFocusedRowIndex(obj.GetFocusedRowIndex() + 1);
                ASPxCallback1.PerformCallback(msg);
            }
            GVScrollToVisibleIndexOnClient(obj, obj.GetFocusedRowIndex());
        }

        function final(obj, msg, key) {
            hdCollection.Set(key, obj.GetRowKey(obj.GetVisibleRowsOnPage() - 1));
            obj.SetFocusedRowIndex(obj.GetVisibleRowsOnPage() - 1);
            ASPxCallback1.PerformCallback(msg);
            GVScrollToVisibleIndexOnClient(obj, obj.GetFocusedRowIndex());
        }

        function rowClick() {
            if (gvShuiBiaoXX.GetFocusedRowIndex() != -1) {
                hdCollection.Set("ID", gvShuiBiaoXX.GetRowKey(gvShuiBiaoXX.GetFocusedRowIndex()));
                ASPxCallback1.PerformCallback("setinfo");
            }
        }

        function ASPxCallback1Complete(rs) {
            var arr = rs.split('|');
            var type = arr[0];
            var state = arr[1];
            if (type == "setinfo") {
                txtShuiBiaoH2.SetText(arr[2]);
                txtBiaoLei.SetText(arr[3]);
                txtYongHuH2.SetText(arr[4]);
                txtXingZhengQM.SetText(arr[5]);
                txtChaoBiaoRQ.SetText(arr[6]);
                txtShangYueRQ.SetText(arr[7]);
                txtYongHuM2.SetText(arr[8]);
                txtBenYueCM.SetText(arr[9]);
                txtShangYueCM.SetText(arr[10]);
                txtGuanWangKH2.SetText(arr[11]);
                txtBiaoCeH.SetText(arr[12]);
                txtChaoJianL2.SetText(arr[13]);
                txtJiaoZhengL.SetText(arr[14]);
                txtZhuangBiaoRQ.SetText(arr[15]);
                txtKouJing.SetText(arr[16]);
                txtSheShuiDXDM.SetText(arr[17]);
                txtYongShuiJ2.SetText(arr[18]);
                txtChaoBiaoZT.SetText(arr[19]);
                txtShuiSiZT2.SetText(arr[25]);
                txtSheShuiDXMC.SetText(arr[20]);
                txtGuJiCS.SetText(arr[21]);
                txtShuiBiaoHM.SetText(arr[24]);
                txtShuiBiaoDZ.SetText(arr[23]);
            }
        }
       
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            重点管理水表信息查询
        </div>
        <div style="display: none;">
            <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
            <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
        </div>
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <input type="hidden" id="hidName" runat="server" value="" />
                <input type="hidden" id="HidValue" runat="server" value="" />
                <div>
                    <div  style="border: 1px solid #d0e4fe;height:35px;">
                        <table style="text-align: right; font-size: 12px;">
                            <tr>
                                <td style="width:6%;"><span style="font-size: 12px;">站点：</span></td>
                                <td style="width:8%;">
                                    <asp:Panel runat="server" ID="Panel1">
                                        <dx:ASPxComboBox runat="server" ID="cmbGuanLiBM" Width="80%" AutoPostBack="true" OnSelectedIndexChanged="cmbGuanLiBM_SelectedIndexChanged">
                                            <Items>
                                                <dx:ListEditItem Text="全部" Value="全部" Selected="true" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td style="width:6%;"><span style="font-size: 12px;">管理块：</span></td>
                                <td style="width:8%;">
                                    <asp:Panel runat="server" ID="Panel2">
                                        <dx:ASPxComboBox runat="server" ID="cmbGuanLiK" Width="80%">
                                            <Items>
                                                <dx:ListEditItem Text="全部" Value="" Selected="true" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td style="width:6%;"><span style="font-size: 12px;">水量年：</span></td>
                                <td style="width:6%;">
                                    <dx:ASPxTextBox runat="server" ID="txtShuiLiangY" Width="80%" ClientInstanceName="txtShuiLiangY">
                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width:6%;"><span style="font-size: 12px;">水量月：</span></td>
                                <td style="width:6%;">
                                    <dx:ASPxTextBox runat="server" ID="txtShuiLiangM" Width="80%" ClientInstanceName="txtShuiLiangM">
                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width:6%;"><span style="font-size: 12px;">业务员：</span></td>
                                <td style="width:8%;">
                                    <asp:Panel runat="server" ID="Panel3">
                                        <dx:ASPxComboBox runat="server" ID="cmbYeWuY" Width="80%">
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td style="width:12%;">
                                    <dx:ASPxCheckBox runat="server" ID="YuKaoHYH" Text="含预考核用户" ClientVisible="false"></dx:ASPxCheckBox>
                                </td>
                                 <td>&nbsp;&nbsp;</td>
                                <td>
                                     <dx:ASPxLoadingPanel runat="server" ID="LoadPanel" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel>
                                    <dx:ASPxButton runat="server" ID="btnChaXun" Text="查询" OnClick="btnChaXun_Click">
                                        <ClientSideEvents Click="function(s,e){LoadPanel.Show();e.processOnServer = true;return true;}" />
                                    </dx:ASPxButton>
                                </td>
                                <td>
                                    <dx:ASPxButton ID="btnExport2" runat="server"  Text="导出EXCEL" >
                                        <ClientSideEvents Click="function(s,e){btnExport.OnClick();}"/>
                                    </dx:ASPxButton>
                                </td> 
                            </tr>
                        </table>
                    </div>
                    <div>
                        <div id="condition" style="float: left; width: 17%; border: 1px solid #d0e4fe;">
                            <table style="width: 98%;height:490px;">
                                <tr>
                                    <td>
                                        <dx:ASPxRadioButton Font-Size="12px" runat="server" ID="rbnYongHuH" Text="用户号" GroupName="1" ClientInstanceName="rbnYongHuH"></dx:ASPxRadioButton>
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtYongHuH" Width="100%">
                                            <ClientSideEvents   GotFocus="function(s,e){rbnYongHuH.SetChecked(true);}"/>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <dx:ASPxRadioButton Font-Size="12px" runat="server" ID="rbnShuiBiaoH" Text="水表号" GroupName="1" ClientInstanceName="rbnShuiBiaoH"></dx:ASPxRadioButton>
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtShuiBiaoH" Width="100%">
                                            <ClientSideEvents   GotFocus="function(s,e){rbnShuiBiaoH.SetChecked(true);}"/>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <dx:ASPxRadioButton runat="server" ID="rbnYongHuM" Text="用户名" GroupName="1" ClientInstanceName="rbnYongHuM"></dx:ASPxRadioButton>

                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <dx:ASPxTextBox runat="server" ID="txtYongHuM" Width="100%">
                                            <ClientSideEvents   GotFocus="function(s,e){rbnYongHuM.SetChecked(true);}"/>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <dx:ASPxRadioButton runat="server" ID="rbnBiaoDZ" Text="表地址" GroupName="1" ClientInstanceName="rbnBiaoDZ"></dx:ASPxRadioButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <dx:ASPxTextBox runat="server" ID="txtBiaoDZ" Width="100%">
                                            <ClientSideEvents   GotFocus="function(s,e){rbnBiaoDZ.SetChecked(true);}"/>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <dx:ASPxRadioButton runat="server" ID="rbnBiaoLei" Text="表类" GroupName="1" ClientInstanceName="rbnBiaoLei"></dx:ASPxRadioButton>
                                    </td>
                                    <td>
                                        <asp:Panel runat="server" ID="Panel13">
                                            <dx:ASPxComboBox runat="server" ID="cbmBiaoLei" Width="100%">
                                                <ClientSideEvents   GotFocus="function(s,e){rbnBiaoLei.SetChecked(true);}"/>
                                            </dx:ASPxComboBox>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <dx:ASPxRadioButton runat="server" ID="rbnGuanWangKH" Text="管网块号" GroupName="1" ClientInstanceName="rbnGuanWangKH"></dx:ASPxRadioButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <dx:ASPxTextBox runat="server" ID="txtGuanWangKH" Width="100%">
                                            <ClientSideEvents   GotFocus="function(s,e){rbnGuanWangKH.SetChecked(true);}"/>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <dx:ASPxRadioButton runat="server" ID="rbnXingZhengQ" Text="行政区" GroupName="1" ClientInstanceName="rbnXingZhengQ"></dx:ASPxRadioButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:Panel runat="server" ID="Panel14">
                                            <dx:ASPxComboBox runat="server" ID="cmbXingZhengQ" Width="100%">
                                                <ClientSideEvents   GotFocus="function(s,e){rbnXingZhengQ.SetChecked(true);}"/>
                                            </dx:ASPxComboBox>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <dx:ASPxRadioButton runat="server" ID="rbnChaoJianL" Text="抄见量" GroupName="1" ClientInstanceName="rbnChaoJianL"></dx:ASPxRadioButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel runat="server" ID="Panel4">
                                            <dx:ASPxComboBox runat="server" ID="cbmChaoJianL" Width="100%">
                                                <Items>
                                                    <dx:ListEditItem Text="=" Value="" Selected="true" />
                                                    <dx:ListEditItem Text=">" Value="0" />
                                                    <dx:ListEditItem Text=">=" Value="1" />
                                                    <dx:ListEditItem Text="<" Value="2" />
                                                    <dx:ListEditItem Text="<=" Value="3" />
                                                    <dx:ListEditItem Text="<>" Value="4" />
                                                </Items>
                                                <ClientSideEvents   GotFocus="function(s,e){rbnChaoJianL.SetChecked(true);}"/>
                                            </dx:ASPxComboBox>
                                        </asp:Panel>
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtChaoJianL" Width="100%">
                                            <ClientSideEvents   GotFocus="function(s,e){rbnChaoJianL.SetChecked(true);}"/>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <dx:ASPxRadioButton runat="server" ID="rbnYongShuiJ" Text="用水价" GroupName="1" ClientInstanceName="rbnYongShuiJ"></dx:ASPxRadioButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 45%;">
                                        <asp:Panel runat="server" ID="Panel12">
                                            <dx:ASPxComboBox runat="server" ID="cbmYongShuiJ" Width="100%">
                                                <Items>
                                                    <dx:ListEditItem Text="=" Value="" Selected="true" />
                                                    <dx:ListEditItem Text=">" Value="0" />
                                                    <dx:ListEditItem Text=">=" Value="1" />
                                                    <dx:ListEditItem Text="<" Value="2" />
                                                    <dx:ListEditItem Text="<=" Value="3" />
                                                    <dx:ListEditItem Text="<>" Value="4" />
                                                </Items>
                                                <ClientSideEvents   GotFocus="function(s,e){rbnYongShuiJ.SetChecked(true);}"/>
                                            </dx:ASPxComboBox>
                                        </asp:Panel>
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtYongShuiJ" Width="100%">
                                            <ClientSideEvents   GotFocus="function(s,e){rbnYongShuiJ.SetChecked(true);}"/>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <dx:ASPxRadioButton runat="server" ID="rbnChaoBiaoZT" Text="抄表状态" GroupName="1" ClientInstanceName="rbnChaoBiaoZT"></dx:ASPxRadioButton>
                                    </td>
                                    <td>
                                        <asp:Panel runat="server" ID="Panel5">
                                            <dx:ASPxComboBox runat="server" ID="cbmChaoBiaoZT" Width="100%">
                                                <ClientSideEvents   GotFocus="function(s,e){rbnChaoBiaoZT.SetChecked(true);}"/>
                                            </dx:ASPxComboBox>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <dx:ASPxRadioButton runat="server" ID="rbnShuiSiZT" Text="水司状态" GroupName="1" ClientInstanceName="rbnShuiSiZT"></dx:ASPxRadioButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <dx:ASPxTextBox runat="server" ID="txtShuiSiZT" Width="100%">
                                            <ClientSideEvents  GotFocus="function(s,e){rbnShuiSiZT.SetChecked(true);}"/>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <dx:ASPxRadioButton runat="server" ID="rbnSheShuiDXFL" Text="涉水对象分类" GroupName="1" ClientInstanceName="rbnSheShuiDXFL"></dx:ASPxRadioButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel runat="server" ID="Panel7">
                                            <dx:ASPxComboBox runat="server" ID="cmbSheShuiDXFL_q1" Width="100%">
                                                <Items>
                                                    <dx:ListEditItem Text="=" Value="" Selected="true" />
                                                    <dx:ListEditItem Text=">" Value="0" />
                                                    <dx:ListEditItem Text=">=" Value="1" />
                                                    <dx:ListEditItem Text="<" Value="1" />
                                                    <dx:ListEditItem Text="<=" Value="1" />
                                                    <dx:ListEditItem Text="<>" Value="1" />
                                                </Items>
                                                <ClientSideEvents   GotFocus="function(s,e){rbnSheShuiDXFL.SetChecked(true);}"/>
                                            </dx:ASPxComboBox>
                                        </asp:Panel>
                                    </td>
                                    <td>
                                        <asp:Panel runat="server" ID="Panel8">
                                            <dx:ASPxComboBox runat="server" ID="cmbSheShuiDXFL_h1" Width="100%">
                                                <ClientSideEvents   GotFocus="function(s,e){rbnSheShuiDXFL.SetChecked(true);}"/>
                                            </dx:ASPxComboBox>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel runat="server" ID="Panel9">
                                            <dx:ASPxComboBox runat="server" ID="cmbSheShuiDXFL_q2" Width="100%">
                                                <Items>
                                                    <dx:ListEditItem Text="=" Value="" Selected="true" />
                                                    <dx:ListEditItem Text=">" Value="0" />
                                                    <dx:ListEditItem Text=">=" Value="1" />
                                                    <dx:ListEditItem Text="<" Value="1" />
                                                    <dx:ListEditItem Text="<=" Value="1" />
                                                    <dx:ListEditItem Text="<>" Value="1" />
                                                </Items>
                                                <ClientSideEvents   GotFocus="function(s,e){rbnSheShuiDXFL.SetChecked(true);}"/>
                                            </dx:ASPxComboBox>
                                        </asp:Panel>
                                    </td>
                                    <td>
                                        <asp:Panel runat="server" ID="Panel10">
                                            <dx:ASPxComboBox runat="server" ID="cmbSheShuiDXFL_h2" Width="100%">
                                                <ClientSideEvents   GotFocus="function(s,e){rbnSheShuiDXFL.SetChecked(true);}"/>
                                            </dx:ASPxComboBox>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div style="border: 1px solid #d0e4fe; width: 82%;float:right;">
                        <div style="width: 100%; height: 25px;">
                            <table>
                                <tr>
                                    <td style="width:70px;"><div onclick="first(gvShuiBiaoXX,'setinfo','ID');"><img src="../../../Images/first.jpg" /></div></td>
                                    <td style="width:70px;"><div onclick="last(gvShuiBiaoXX,'setinfo','ID');"><img src="../../../Images/last.jpg" /></div></td>
                                    <td style="width:70px;"><div onclick="next(gvShuiBiaoXX,'setinfo','ID');"><img src="../../../Images/next.jpg" /></div></td>
                                    <td style="width:70px;"><div onclick="final(gvShuiBiaoXX,'setinfo','ID');"><img src="../../../Images/final.jpg" /></div></td>
                                  <td style="width:70px;">&nbsp;</td>
                                    <td>
                                      <dx:ASPxLabel ID="zjl" Text="共0条" runat="server" ForeColor ="Blue"></dx:ASPxLabel>
                                  </td>
                                </tr>
                            </table>
                        </div>
                        
                        <div>
                            <dx:ASPxGridView ID="gvShuiBiaoXX" ClientInstanceName="gvShuiBiaoXX" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" 
                                EnableCallBacks="true"   ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%">
                                <Columns>
                                    <dx:GridViewDataTextColumn FieldName="S_YONGHUBH" Caption="用户号" Width="60">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="280">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_SHUIBIAOBH" Caption="水表号" Width="75">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="I_BENYUECM" Caption="本月抄码" Width="75">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="I_SHANGYUECM" Caption="上月抄码" Width="75">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="I_BENYUESL" Caption="抄见量" Width="70">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="I_JIAODUISL" Caption="校正量" Width="70">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="JIAO_CHAO" Caption="校/抄" Width="60">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="D_CHAOBIAO" Caption="本月抄表日" Width="80" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="D_SHANGYUE" Caption="上月日期" Width="80" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_CHAOBIAOZT" Caption="抄表状态" Width="75">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="SHUISI" Caption="水司状态" Width="75">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="N_YSJ" Caption="用水价" Width="60">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="I_GUJICS" Caption="估计次数" Width="75">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_MINGCHENG" Caption="水表户名" Width="240">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_DIZHI" Caption="水表地址" Width="200">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_CH" Caption="册号" Width="60">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="I_TYPE" Caption="表类" Width="60">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="I_KOUJING" Caption="口径" Width="60">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_BIAOXING" Caption="表型" Width="60">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_KUAIHAO" Caption="管网块号" Width="75">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_SHESHUIDXDM" Caption="涉水对象代码" Width="90">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="SHESHUIMC" Caption="涉水对象名称" Width="220">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="D_ZHUANGBIAO" Caption="装表日期" Width="80" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="I_CHAOBIAOZQ" Caption="抄表周期" Width="75">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_XINGZHENGQBH" Caption="行政区" Width="65">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="XINGZHENGQ" Caption="行政区" Width="50">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="YEWUY" Caption="业务员" Width="60">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="I_SHANGYUESL" Caption="上月水量" Width="75">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="S_XIUGAIR" Caption="修改人" Width="75">
                                    </dx:GridViewDataTextColumn>
                                </Columns>
                                <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" />
                                <SettingsPager Mode="EndlessPaging" PageSize="100" AlwaysShowPager="true" FirstPageButton-Visible="true" />
                                <Settings ShowFooter="True" />
                                <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                <ClientSideEvents Init="function(s,e){AdjustSize(335,gvShuiBiaoXX);}"  FocusedRowChanged="function(s,e){rowClick();}" />

                                <%--<Settings  VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                                <SettingsBehavior ProcessFocusedRowChangedOnServer="true" />--%>
                            </dx:ASPxGridView>
                        </div>
                        <div style="margin-top: 20px;">
                            <table style="text-align: right; height: 210px; width: 100%;">
                                <tr>
                                    <td style="width: 9%;"><span style="font-size: 12px;">水表号：</span></td>
                                    <td style="width: 13%;">
                                        <dx:ASPxTextBox runat="server" ID="txtShuiBiaoH2" Width="80%"  ClientEnabled="false" ClientInstanceName="txtShuiBiaoH2"></dx:ASPxTextBox>
                                    </td>
                                    <td style="width: 9%;"><span style="font-size: 12px;">表类：</span></td>
                                    <td style="width: 13%;">
                                        <dx:ASPxTextBox runat="server" ID="txtBiaoLei" Width="80%" ClientEnabled="false" ClientInstanceName="txtBiaoLei"></dx:ASPxTextBox>
                                    </td>
                                    <td style="width: 9%;"><span style="font-size: 12px;">用户号：</span></td>
                                    <td style="width: 13%;">
                                        <dx:ASPxTextBox runat="server" ID="txtYongHuH2" Width="80%" ClientEnabled="false" ClientInstanceName="txtYongHuH2"></dx:ASPxTextBox>
                                    </td>
                                    <td style="width: 9%;"><span style="font-size: 12px;">行政区名：</span></td>
                                    <td style="width: 13%;">
                                        <dx:ASPxTextBox runat="server" ID="txtXingZhengQM" Width="100%" ClientEnabled="false" ClientInstanceName="txtXingZhengQM"></dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td><span style="font-size: 12px;">本月抄表日期：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtChaoBiaoRQ" Width="80%" ClientEnabled="false" ClientInstanceName="txtChaoBiaoRQ"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">上月日期：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtShangYueRQ" Width="80%" ClientEnabled="false" ClientInstanceName="txtShangYueRQ"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">用户名：</span></td>
                                    <td colspan="3">
                                        <dx:ASPxTextBox runat="server" ID="txtYongHuM2" Width="100%" ClientEnabled="false" ClientInstanceName="txtYongHuM2"></dx:ASPxTextBox>
                                    </td>
                                 </tr>
                                <tr>
                                    <td><span style="font-size: 12px;">本月抄码：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtBenYueCM" Width="80%" ClientEnabled="false" ClientInstanceName="txtBenYueCM"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">上月抄码：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtShangYueCM" Width="80%" ClientEnabled="false" ClientInstanceName="txtShangYueCM"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">管网块号：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtGuanWangKH2" Width="80%" ClientEnabled="false" ClientInstanceName="txtGuanWangKH2"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">表册号：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtBiaoCeH" Width="100%" ClientEnabled="false" ClientInstanceName="txtBiaoCeH"></dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td><span style="font-size: 12px;">抄见量：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtChaoJianL2" Width="80%" ClientEnabled="false" ClientInstanceName="txtChaoJianL2"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">校正量：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtJiaoZhengL" Width="80%" ClientEnabled="false" ClientInstanceName="txtJiaoZhengL"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">装表日期：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtZhuangBiaoRQ" Width="80%" ClientEnabled="false" ClientInstanceName="txtZhuangBiaoRQ"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">口径：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtKouJing" Width="100%" ClientEnabled="false" ClientInstanceName="txtKouJing"></dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td><span style="font-size: 12px;">涉水对象代码：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtSheShuiDXDM" Width="80%" ClientEnabled="false" ClientInstanceName="txtSheShuiDXDM"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">用水价：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtYongShuiJ2" Width="80%" ClientEnabled="false" ClientInstanceName="txtYongShuiJ2"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">抄表状态：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtChaoBiaoZT" Width="80%" ClientEnabled="false" ClientInstanceName="txtChaoBiaoZT"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">水司状态：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtShuiSiZT2" Width="100%" ClientEnabled="false" ClientInstanceName="txtShuiSiZT2"></dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td><span style="font-size: 12px;">涉水对象名称：</span></td>
                                    <td colspan="3">
                                        <dx:ASPxTextBox runat="server" ID="txtSheShuiDXMC" Width="80%" ClientEnabled="false" ClientInstanceName="txtSheShuiDXMC"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">估计次数：</span></td>
                                    <td>
                                        <dx:ASPxTextBox runat="server" ID="txtGuJiCS" Width="80%" ClientEnabled="false" ClientInstanceName="txtGuJiCS"></dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td><span style="font-size: 12px;">水表户名：</span></td>
                                    <td colspan="3">
                                        <dx:ASPxTextBox runat="server" ID="txtShuiBiaoHM" Width="80%" ClientEnabled="false" ClientInstanceName="txtShuiBiaoHM"></dx:ASPxTextBox>
                                    </td>
                                    <td><span style="font-size: 12px;">水表地址：</span></td>
                                    <td colspan="3">
                                        <dx:ASPxTextBox runat="server" ID="txtShuiBiaoDZ" Width="100%" ClientEnabled="false" ClientInstanceName="txtShuiBiaoDZ"></dx:ASPxTextBox>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </ContentTemplate>

        </asp:UpdatePanel>
          
         <div style="display: none;">
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
            <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false">
            </dx:ASPxButton>
        </div>    
    </form>
</body>
</html>
